function qStr(obj) {
	return Object.keys(obj).map(v => `${v}=${encodeURI(obj[v])}`).join('&')
}


// 取代formdata类型 post请求  设置请求头
export const login = (data) => {
	let qStr = qStr(data)
	return ajax({
		url: '/monitor/LoginValidation',
		data: qStr,
		method: 'post',
		header: {
			'content-type': 'application/x-www-form-urlencoded'
		}
	})
}